/**
 * @输入一个数字逆序输出
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
	int number, s;

	printf("请输入一个数：");
	scanf("%i", &number);

	while (number != 0) {
		s = number % 10;
		printf("%i", s);
		number = number / 10;
	}

	printf("\n");

	return 0;
}
